

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: syyyy
 * Date: 2025-08-10
 * Time: 12:26
 */
public class Test {
    public static void main(String[] args) {
        MyStack stack=new MyStack();
        stack.push(12);
        stack.push(23);
        stack.push(34);
        int peek=stack.peek();
        System.out.println(peek);
        int pop= stack.pop();
        System.out.println(pop);
        stack.display();
//        int peek=stack.peek();
//        System.out.println(peek);
    }
}
